package org.example.feign;

import org.example.util.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @description:
 * @author: 谢超
 * @date: 2024/9/11 15:24
 */
@FeignClient(name = "dcloud-shop-service")
public interface ProductFeignService {

    /**
     * 获取流量包商品详情
     * @param productId
     * @return
     */
    @GetMapping("detail/{product_id}")
    JsonData getDetail(@PathVariable("product_id") long productId);
}
